package com.ruoyi.system.domain.module.examine;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 审批申请记录对象 examine_approve_reg_record
 *
 * @author ruoyi
 * @date 2022-11-23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("examine_approve_reg_record")
public class ExamineApproveRegRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 审批类目id
     */
    private Integer approveId;

    /**
     * 发起的审批标题
     */
    @Excel(name="审批标题")
    private String approveTitle;

    /**
     * 审批类型 0 - 报销类  1 - 采购类
     */
    private Integer approveType;

    /**
     * 发起人 微信用户id
     */
    private Integer userId;

    /**
     * 申请人姓名
     */
    private String userName;

    /**
     * 小区/物业/公司名称/部门名称
     */
    private String deptName;



    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 审批的状态 0 - 待审批  1 - 审批中  2 - 审核完成  3 - 撤销审批
     */
    private Integer state;

    @TableField(exist = false)
    @Excel(name="审批类目")
    private String approveName;

    @Excel(name="审批类型")
    @TableField(exist = false)
    private String approveTypeName;

    @Excel(name="用户名")
    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private String faceUrl;

    /**
     * 结算金额/清算金额
     */
    @Excel(name="支付总价")
    private BigDecimal settlementMoney;
    

    @Excel(name="采购物品")
    @TableField(exist = false)
    private String goodName;

    @Excel(name="采购数量")
    @TableField(exist = false)
    private Integer count;

    @Excel(name="采购单价")
    @TableField(exist = false)
    private BigDecimal singlePrice;

    @Excel(name="采购总价")
    @TableField(exist = false)
    private BigDecimal totalPrice;

    @Excel(name="物品规格")
    @TableField(exist = false)
    private String specs;

    @TableField(exist = false)
    private Integer propertyId;
}
